/*
 * Copyright/Licensing information.
 */

/* inclusion guard */
#ifndef __ECV_FILTER_GRAYSCALE_H__
#define __ECV_FILTER_GRAYSCALE_H__

/*
 * Glib includes
 */
#include <glib-object.h>
//#include <gio.h>

/*
 * Potentially, include other headers on which this header depends.
 */

#include "ecv_filter.h"

#include <stdio.h>

/*
 * Type macros.
 */
#define ECV_TYPE_FILTER_GRAYSCALE                  (ecv_filter_grayscale_get_type ())
#define ECV_FILTER_GRAYSCALE(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), ECV_TYPE_FILTER_GRAYSCALE, EcvFilter_Grayscale))
#define ECV_IS_FILTER_GRAYSCALE(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ECV_TYPE_FILTER_GRAYSCALE))
#define ECV_FILTER_GRAYSCALE_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), ECV_TYPE_FILTER_GRAYSCALE, EcvFilter_GrayscaleClass))
#define ECV_IS_FILTER_GRAYSCALE_CLASS(klass)       (G_TYPE_CHECK_CLASS_TYPE ((klass), ECV_TYPE_FILTER_GRAYSCALE))
#define ECV_FILTER_GRAYSCALE_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), ECV_TYPE_FILTER_GRAYSCALE, EcvFilter_GrayscaleClass))

typedef struct _EcvFilter_Grayscale        EcvFilter_Grayscale;
typedef struct _EcvFilter_GrayscaleClass   EcvFilter_GrayscaleClass;
typedef struct _EcvFilter_GrayscalePrivate EcvFilter_GrayscalePrivate;

struct _EcvFilter_Grayscale
{
  EcvFilter parent_instance;

  /*< public >*/


  /*< private >*/
  EcvFilter_GrayscalePrivate *priv;
};

struct _EcvFilter_GrayscaleClass
{
  GObjectClass parent_class;

  /* class members */
  /*< public >*/


  //------------------------------------------------
  /*                   virtual                    */
  void (*create) (EcvFilter_Grayscale *self);
  void (*process) (EcvFilter_Grayscale *self);
};

/* used by ECV_TYPE_FILTER_GRAYSCALE */
GType ecv_filter_grayscale_get_type (void);

/*
 * Method definitions.
 */

EcvFilter_Grayscale * 
ecv_filter_grayscale_new (int width, int height, int bpp);


#endif /* __ECV_FILTER_GRAYSCALE_H__ */
